package com.lz.football.module.guess
{
	import com.common.utils.DisplayObjectUtil;
	import com.common.utils.Reflection;
	import com.global.GlobalDef;
	import com.lz.football.module.base.IComponent;
	
	import flash.display.SimpleButton;
	import flash.events.MouseEvent;
	import flash.text.TextField;
	
	import lz.controls.core.TitleWindow;
	import lz.controls.core.UIComponent;

	/**
	 *球队详情面板 
	 * @author lake
	 * 
	 */	
	public class GuessRulePanel extends TitleWindow implements IComponent
	{
		/**
		 *data 
		 */		
		private var _data			:*;
		
		public function GuessRulePanel()
		{
			super();
		}
		/**
		 *获取设置数据 
		 * @param value
		 * 
		 */		
		public function set data(value:*):void
		{
			_data = value;
			if(_data == null)
			{
				return;
			}
		}
		public function get data():*
		{
			return _data;
		}
		/**
		 *初始化 
		 * @param view
		 */		
		public function initUI(view:Object=null):void
		{
			_symbolSkin = Reflection.createInstance("com.lz.res.fbLottery.RulelSKin");
			this.addChild(_symbolSkin);
			//初始化宽高
			width = _symbolSkin.width;
			height = _symbolSkin.height;
			//close btn
			closeBtn = Reflection.createInstance("com.lz.commonUI.closeBtn");
			closeBtn.x = 505;
			closeBtn.y = 4;
			_symbolSkin.addChild(closeBtn);
			//背景框
			windowBg = _symbolSkin.windowBg;
			//设置可拖动
			dragEnabled = true;
			//设置关闭按钮
			setCloseBtn(closeBtn);
			
			addEvtListener();
		}
		/**
		 *添加事件 
		 */		
		public function addEvtListener():void
		{
		}
		/**
		 *删除事件 
		 */		
		public function removeEvtListener():void
		{
		}
		/**
		 *销毁 
		 */		
		public function destroyView():void
		{
			if(this.parent)
			{
				this.parent.removeChild(this);
			}
			removeEvtListener();
			DisplayObjectUtil.removeAllChildren(this);
			dragEnabled = false;
			_symbolSkin = null;
		}
	}
}